<p id="notice"><%= notice %></p>

<p>
  <b>Name:</b>
  <%= @product.name %>
</p>

<p>
  <b>Description:</b>
  <%= @product.description %>
</p>

<p>
  <b>History:</b>
  <%= @product.history %>
</p>

<p>
  <b>Quantity:</b>
  <%= @product.quantity %>
</p>

<p>
  <b>Cockpitcost:</b>
  <%= @product.cockpitCost %>
</p>

<p>
  <b>Sellercost:</b>
  <%= @product.sellerCost %>
</p>



<table>

  <% @product.images.each do |image| %>
     <tr>
       <%= image_tag(image.avatar_url, :size => "100x100") if image.avatar? %>
     </tr>

  <%end %>

</table>

<%= link_to 'Add Images', new_product_image_path(@product) %>
<br>
<%= link_to 'View Images', new_product_image_path(@product) %>
<br>
<%= link_to 'Edit', edit_product_path(@product) %> |
<%= link_to 'Back', products_path %>